package com.zsrt.java.day20170113.lh.daily;

import java.lang.reflect.Constructor;

public class ConstructorTest {

	
	public static void main(String[] args) throws Exception {
		
		
		Class<?> clazz=Class.forName("com.zsrt.java.day20170113.lh.daily.Student");
		
		Constructor con = clazz.getDeclaredConstructor(int.class,String.class,String.class);
		Constructor con2 = clazz.getDeclaredConstructor();
		
		Object student = con.newInstance(1001,"刘浩","15766472116");
		Object stu2 = con2.newInstance();
		
		
		
		System.out.println(student);
		System.out.println(stu2);
		
		
		
	}
}
